package service.impl;

import dao.PowerBatteryDao;
import dao.impl.PowerBatteryDaoImpl;
import entity.PowerBattery;
import service.PowerBatteryService;

import java.util.List;

public class PowerBatteryServiceImpl implements PowerBatteryService {
    PowerBatteryDao powerBatteryDao=new PowerBatteryDaoImpl();
    @Override
    public List<PowerBattery> getAllPowerBattery() {
        return powerBatteryDao.getAllPowerBattery();
    }

    @Override
    public int deletePowerBattery(Integer id) {
        return powerBatteryDao.deletePowerBattery(id);
    }

    @Override
    public int updatePowerBattery(PowerBattery powerBattery) {
        return powerBatteryDao.updatePowerBattery(powerBattery);
    }

    @Override
    public PowerBattery findPowerBatteryById(Integer id) {
        return powerBatteryDao.findPowerBatteryById(id);
    }
}
